// LextreeView.cpp : implementation of the CLextreeView class
//

#include "stdafx.h"
#include "ref00.h"

#include "ref00Doc.h"
#include "LextreeView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CLextreeView

IMPLEMENT_DYNCREATE(CLextreeView, CTreeView)

BEGIN_MESSAGE_MAP(CLextreeView, CTreeView)
	//{{AFX_MSG_MAP(CLextreeView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
	// Standard printing commands
	ON_COMMAND(ID_FILE_PRINT, CTreeView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CTreeView::OnFilePrint)
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CTreeView::OnFilePrintPreview)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLextreeView construction/destruction

CLextreeView::CLextreeView()
{
	// TODO: add construction code here

}

CLextreeView::~CLextreeView()
{
}

BOOL CLextreeView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CTreeView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CLextreeView drawing

void CLextreeView::OnDraw(CDC* pDC)
{
	CRef00Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);

	// TODO: add draw code for native data here
}


/////////////////////////////////////////////////////////////////////////////
// CLextreeView printing

void CLextreeView::OnInitialUpdate()
{
	CTreeView::OnInitialUpdate();

	// TODO: You may populate your TreeView with items by directly accessing
	//  its tree control through a call to GetTreeCtrl().
}

/////////////////////////////////////////////////////////////////////////////
// CLextreeView diagnostics

#ifdef _DEBUG
void CLextreeView::AssertValid() const
{
	CTreeView::AssertValid();
}

void CLextreeView::Dump(CDumpContext& dc) const
{
	CTreeView::Dump(dc);
}

CRef00Doc* CLextreeView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CRef00Doc)));
	return (CRef00Doc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CLextreeView message handlers
